home *** CD-ROM | disk | FTP | other *** search
- /*
- ** $PROJECT: c.datatype
- **
- ** $VER: test.c 39.3 (29.08.95)
- **
- ** by
- **
- ** Stefan Ruppert , Windthorststrasse 5 , 65439 Floersheim , GERMANY
- **
- ** (C) Copyright 1995
- ** All Rights Reserved !
- **
- ** $HISTORY:
- **
- ** 29.08.95 : 039.003 : added V39.14 fixed errors (Tab size=3)
- ** 28.06.95 : 039.002 : added V39.11 fixed errors
- ** 28.04.95 : 039.001 : initial
- */
-
- /* This file contains parts, which produced parse errors in version 39.6 and
- * before.
- */
-
- /* if comment was mark as TEXT (c.prefs), the comment line wasn't wrapped
- *
- * Reported from Swen Stullich
- */
-
- void test(void)
- {
- int a;
- // int b;
- int c;
-
- return;
- }
-
- /* a backslash at the end of a line in a string to continue the string wasn't
- * handled correctly !
- *
- * Reported from Klaus A Seistrup.
- */
-
- static char string[] = "\
- This is a test\n\
- Ok\n";
-
- /* a backslash at the end of a line wasn't handled correctly
- *
- * Reported from Jens Toivo Berger Thielemann
- */
-
-
- static char string[] = "This is a second test\n" \ /* test */
- "with two three lines\n" \
- "Ok\n";
-
- /* Errors before V39.11 */
-
- /* a C++ comment followed by a cpp keyword produced a parse error
- *
- * Reported from Timo C. Nentwig.
- */
-
- #include <test1.h> // C++ comment
- #include <test2.h>
-
- /* tabs in a string weren't handled correctly
- */
-
- char *test = "Tabs String Test";
-
- #if defined(TEST) && !defined(TEST2)
- #endif
-
- /* Errors before V39.14 */
-
- /*
- * Reported from Michal Letowski.
- */
-
- /* Inconsequence in treating header files names */
- #include <stdio.h>
- #include "stdio.h"
-
- /* Bad // comments */
- // This comment is bad
-
- /* 0X wasn't handled correctly */
- #define M1 0XdeadBEEF
- #define M2 0xDEADbeef /* test */
-
- State=STATE_FRACTION,CH++; /* This comments begin */
- elif(*CH=='\0') /* at column 49 <BAD> */
- State=STATE_DONE; /* in my editor */
-
- /* Last line is not LF-terminated */
- #include "test.h"